package myapps.ttclient.protocol.message;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.Helper;
import myapps.ttclient.baseclass_and_interface.TTClientMessage;


public class NoticeMessage extends TTClientMessage
{
	private String m_str_notice = "";

	public String getNotice() {
		return m_str_notice;
	}

	public NoticeMessage(String notice)
	{
		this.m_str_notice = notice;
	}

	public static TTClientMessage parse(DataInputStream dis) throws IOException
	{
		String notice = Helper.ParseAsString(dis);
		
		return new NoticeMessage(notice);
	}

	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException
	{
		throw new IOException("NotImplemented");
	}
}